<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>表单输入</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
<div id="app">
    <input v-model="textFiled" placeholder="请输入内容"/>
    <p>文本框里面的内容是：{{ textFiled }}</p>
    <textarea v-model="textArea"></textarea>
    <p style="white-space: pre-line">多行文本内容：{{ textArea }}</p>
    <input type="checkbox" v-model="checkbox"/>
    <p> 复选框状态：{{ checkbox }} </p>
    <input type="checkbox" v-model="checkList" value="足球"/>足球
    <input type="checkbox" v-model="checkList" value="篮球"/>篮球
    <input type="checkbox" v-model="checkList" value="排球"/>排球
    <p> 状态：{{ checkList }} </p>
</div>
</body>
<script>
    const data = {
        data() {
            return {
                textFiled: "",
                textArea: "",
                checkbox: false,
                checkList: []
            }
        }
    }
    Vue.createApp(data).mount("#app")
</script>
</html>